Reusing XML Schema |
The XML schemas that are used in Web services can be used in applications also. But, you cannot use the XML schemas that are created and not used in a Web service. For using such schemas, you need to create a Web service with the schemas that you want to reuse.
You can create a Web service in any of the following ways:
- Generate Process Platform Web service operations for External Web services
- Create WSDL that contains at least one Inline schema which imports or includes all the required schemas. (The schemas that are to be reused in an application).
- Generate Webservice operations.
- Generate Web Service Operations on Custom Logic.
- Create XMLSchema that imports or includes all the required schemas and ensure that the schema has atleast one schema fragment.
- Generate Webservice operations.
Install the application package at the location where you want to reuse the schema. Add a run-time Web service interface as described in the following procedure:
- In the Workspace Documents (Explorer), right-click <project> or <folder> and select Add Run-time Reference > Other. The New Run-time Reference dialog box appears, displaying all the runtime documents.
- Select the document Web Service Interface. A window pertaining to the selected document appears, displaying the run-time information containers.
- Browse through the containers and select the run-time document that you want to refer.
- Click Next. The next screen of the window appears with the details of the selected run-time document.
- Provide additional details in the Additional Instructions box to install the run-time reference, and click Finish. The window closes.
- Navigate to the Web service interface document and expand it.
The XML schema run-time documents will be existing in the schema folder.
Note:
Reload the existing Web service interface run-time references in a project to get the XML schema run-time documents (which are available in run-time repository).